<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";

const url = "https://gitee.com/cjx090566";
</script>

<template>
  <div id="basicLayout">
    <a-layout style="height: 100vh">
      <!--头部-->
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <!--主体-->
      <a-layout-content class="content">
        <RouterView />
      </a-layout-content>
      <!--底部-->
      <a-layout-footer class="footer">
        <div class="footer-content">
          <a-link :href="url" target="_blank" class="custom-link"
            >站主：陈嘉鑫
          </a-link>
        </div>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
.header {
  box-shadow: #eee 1px 1px 5px;
}

.content {
  margin-bottom: 28px;
  padding-right: 70px;
  padding-left: 70px;
  background: linear-gradient(to right, #fefefe, #fff);
}

.footer {
  padding: 16px;
  text-align: center;
  background: #efefef;
}

.custom-link {
  color: #1890ff; /* 修改链接的默认颜色 */
  text-decoration: none; /* 移除下划线 */
}

/* 修改鼠标悬停时的链接颜色 */
.custom-link:hover {
  color: #40a9ff;
}
</style>
